package com.jwater.gateway;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
public class GatewayApp {
    protected static final Logger LOGGER = LoggerFactory.getLogger(GatewayApp.class);

    public static ConfigurableApplicationContext app;

    public static void main(String[] args) {
        LOGGER.info("gateway start begin......");
        app = SpringApplication.run(GatewayApp.class, args);
        LOGGER.info("gateway start success");
    }

}
